package cn.com.bsoft.cloud.dao.cloud;

import cn.com.bsoft.cloud.UseDatasourceCloud;
import cn.com.bsoft.cloud.UseDatasourceHealthWeb;
import cn.com.bsoft.cloud.entity.cloud.UpdatePayStatus;
import cn.com.bsoft.cloud.entity.cloud.master;
import cn.com.bsoft.cloud.entity.cloud.prescriptionArriveResult;
import cn.com.bsoft.cloud.entity.param.PrescriptionDetailDTO;
import cn.com.bsoft.cloud.entity.param.PrescriptionDetailParam;
import cn.com.bsoft.cloud.entity.param.dto.PrescriptionMedicines;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@UseDatasourceCloud
public interface PrescriptionDetailDao {

//

//    //查询处方到达配送点信息
//    @Results({
//            @Result(column="receiveType", property="receiveType"),
//            @Result(column="recordId", property="recordId"),
//            @Result(column="visitRecordId", property="visitRecordId"),
//            @Result(column="prescriptionType", property="prescriptionType"),
//
//            @Result(column="pharmacyId", property="pharmacyId"),
//            @Result(column="provinceNum", property="provinceNum"),
//            @Result(column="provinceName", property="provinceName"),
//            @Result(column="cityNum", property="cityNum"),
//            @Result(column="cityName", property="cityName"),
//            @Result(column="countyNum", property="countyNum"),
//            @Result(column="countyName", property="countyName"),
//            @Result(column="townNum", property="townNum"),
//            @Result(column="townName", property="townName"),
//            @Result(column="address", property="address"),
//            @Result(column="totalPrice", property="totalPrice"),
//            @Result(column="sendStatus", property="sendStatus"),
//            @Result(column="sendDate", property="sendDate"),
//            @Result(column="receiverName", property="receiverName"),
//            @Result(column="receiverPhone", property="receiverPhone"),
//            @Result(column="status", property="status"),
//            @Result(column="createDate", property="createDate"),
//            @Result(column="lastModifyDate", property="lastModifyDate"),
//            @Result(column="doctorCode", property="doctorInfo.doctorCode"),
//            @Result(column="pharmacistId", property="doctorInfo.pharmacistId"),
//            @Result(column="pharmacistName", property="doctorInfo.pharmacistName"),
//            @Result(column="pharmacistRank", property="doctorInfo.pharmacistRank"),
//            @Result(column="doctorCode", property="doctorInfo.doctorCode"),
//            @Result(column="doctorName", property="doctorInfo.doctorName"),
//            @Result(column="doctorRank", property="doctorInfo.doctorRank"),
//            @Result(column="departmentCode", property="doctorInfo.departmentCode"),
//            @Result(column="departmentName", property="doctorInfo.departmentName"),
//            @Result(column="hospitalCode", property="doctorInfo.hospitalCode"),
//            @Result(column="departmentName", property="doctorInfo.departmentName"),
//            @Result(column="hospitalCode", property="doctorInfo.hospitalCode"),
//            @Result(column="hospitalName", property="doctorInfo.hospitalName"),
//            @Result(column="openId", property="doctorInfo.openId"),
//            @Result(column="patientId", property="patientInfo.patientId"),
//            @Result(column="patientName", property="patientInfo.patientName"),
//            @Result(property="prescriptionMedicinesList", javaType= PrescriptionMedicines.class,
//                    many=@Many)
//
//    })


    @Select("${val}")
    List<Map> query(@Param("val") String val);


    @Update("update ")
    void updatePrescriptionDetailSignStatus(PrescriptionDetailDTO prescriptionDetail);
}
